<?php
class OrdersControl extends CommonControl {
	public function index(){
		$orders=new OrdersModel();
		$ordersData=$orders->fetchAll();
		require($this->view->tpl_dir.'/orderslist.php');
	}
	
	public function ordersdetail(){
		$orderid=$_GET['orderid'];
		$orderslist=new OrderslistModel();
		$orderslistData=$orderslist->orderlistdetail($orderid);
			
		$orders=new OrdersModel();
		$ordersData=$orders->ordersbuydone($orderid);
		
		$user=new MemberModel();
		$userData=$user->fetchRow($ordersData['mid']);
		require($this->view->tpl_dir.'/ordersdetaillist.php');
	}
}
?>